package com.dkd.sbtz.domain.vo;

import com.dkd.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class SbtzPatchReq {
    private Long id;               // 必填
    private String nodeType;
    private String name;
    private String code;
    private String remark;

    // 你新增的字段
    private String specification;
    private String model;
    private String material;
    private String power;
    private String brand;
    private String manufacturer;

    private Integer isSpecial = 0;     // 例如这个列非空
    private Long spareId;
    private Integer deptId;
    private Integer status = 0;

    private String updateBy;       // 操作人

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String mokuai;
    private String area;
    private String beType;
    private String designTemp;
    private String designPress;
    private String motorPower;
    private String mixingType;
    private String unit;
    private Integer quantity;
    private BigDecimal amount;

    private List<RouteCreateDTO.SpareRelation> spareRelations;
    private List<RouteCreateDTO.SpareCustom> spareCustom;

}

